package com.placement.app.service;

import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.struts.action.ActionMessage;
import org.apache.struts.action.ActionMessages;

import  com.placement.app.model.ScreenUserBVO;
import  com.placement.app.dao.UserDAO;
import  com.placement.app.util.Constants;



public class UserServiceImpl implements UserService {
	private static final Log logger = LogFactory.getLog(UserServiceImpl.class);
	private UserDAO userDAO;

	public UserDAO getUserDAO() {
		return userDAO;
	}

	public void setUserDAO(UserDAO userDAO) {
		this.userDAO = userDAO;
	}
	
	public ScreenUserBVO getUser(ScreenUserBVO scrUserBVO) {
		return userDAO.getUser(scrUserBVO);
	}
	
	public void saveUser(ScreenUserBVO scrUserBVO) {	
		 userDAO.saveUser(scrUserBVO);
	}
	
	public void registerUser(ScreenUserBVO scrUserBVO) {	
			 userDAO.registerUser(scrUserBVO); 
	}
	
	public boolean checkUserExist(ScreenUserBVO scrUserBVO) {	
		 return userDAO.checkUserExist(scrUserBVO); 
	}
	
	public ScreenUserBVO findUserId(ScreenUserBVO scrUserBVO) {	
		 return userDAO.findUserId(scrUserBVO); 
	}
}
